﻿@model Kunlun.Models.Consumer
@{
	ViewBag.Title = "个人设置";
}
@section Head{
	<link href="@Url.Content("~/Content/themes/base/jquery.ui.all.css")" rel="stylesheet" type="text/css" />
	<link href="@Url.Content("~/Content/member/style.css")" rel="stylesheet" type="text/css" />
	<script src="@Url.Content("~/Scripts/jquery.ui.core.js")" type="text/javascript"></script>
	<script src="@Url.Content("~/Scripts/jquery.ui.widget.js")" type="text/javascript"></script>
	<script src="@Url.Content("~/Scripts/jquery.ui.datepicker.js")" type="text/javascript"></script>
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script>
	$(function () {
		$("#BirthDay").datepicker();
	});
</script>
<div id="content">
	@Html.Partial("_MymenuPartial")
	<fieldset class="right">
		<legend>
			编辑个人信息</legend>
		@using (Html.BeginForm()) {
			@Html.ValidationSummary(true)
			<dl>
				<dt>@Html.LabelFor(model => model.RealName)</dt>
				<dd>@Html.EditorFor(model => model.RealName)</dd>
				<dd class="error">@Html.ValidationMessageFor(model => model.RealName)</dd>
			</dl>
			<dl>
				<dt>@Html.LabelFor(model => model.Sex)</dt>
				<dd>@Html.RadioButton("Sex", 1, Model.Sex == 1 ? true : false)男
					@Html.RadioButton("Sex", 0, Model.Sex == 0 ? true : false)女</dd>
				<dd class="error">
				</dd>
			</dl>
			<dl>
				<dt>@Html.LabelFor(model => model.Phone)</dt>
				<dd>@Html.EditorFor(model => model.Phone)</dd>
				<dd class="error">@Html.ValidationMessageFor(model => model.Phone)
				</dd>
			</dl>
			<dl>
				<dt>@Html.LabelFor(model => model.Mobile)</dt>
				<dd>@Html.EditorFor(model => model.Mobile)</dd>
				<dd class="error">@Html.ValidationMessageFor(model => model.Mobile)
				</dd>
			</dl>
			<dl>
				<dt>@Html.LabelFor(model => model.QQ)</dt>
				<dd>@Html.EditorFor(model => model.QQ)</dd>
				<dd class="error">@Html.ValidationMessageFor(model => model.QQ)
				</dd>
			</dl>
			<dl>
				<dt>@Html.LabelFor(model => model.Description)</dt>
				<dd>@Html.EditorFor(model => model.Description)</dd>
				<dd class="error">@Html.ValidationMessageFor(model => model.Description)
				</dd>
			</dl>
			<dl>
				<dt>@Html.LabelFor(model => model.BirthDay)</dt>
				<dd>@Html.EditorFor(model => model.BirthDay)</dd>
				<dd class="error">@Html.ValidationMessageFor(model => model.BirthDay)
				</dd>
			</dl>
			<dl>
				<dt>@Html.LabelFor(model => model.Street)</dt>
				<dd>@Html.EditorFor(model => model.Street)</dd>
				<dd class="error">@Html.ValidationMessageFor(model => model.Street)
				</dd>
			</dl>
			<dl>
				<dt>@Html.LabelFor(model => model.IsRss)</dt>
				<dd>@Html.EditorFor(model => model.IsRss)</dd>
				<dd class="error">@Html.ValidationMessageFor(model => model.IsRss)
				</dd>
			</dl>
			<p class="bu">
					<input type="submit" class="button" value="提 交"/>
			</p>
  }
	</fieldset>
</div>
